import instance from '@/utils/request.js'

export function getQuestionList(params){
  return instance({
    url: '/question/list',
    params
  })
}

export function setQuestionStatus(data){
  return instance({
    url: '/question/status',
    method: 'post',
    data
  })
}

export function delQuestion(data){
  return instance({
    url: '/question/remove',
    method: 'post',
    data
  })
}

export function addQuestionData(data){
  return instance({
    url: '/question/add',
    method: 'post',
    data
  })
}

export function editQuestionData(data){
  return instance({
    url: '/question/edit',
    method: 'post',
    data
  })
}